namespace WB.Mvc.Forms.Widgets
{
	/// <summary>
	/// An option for a multiple selection choice widget.
	/// </summary>
	public struct ChoiceOption
	{
		private string text;
		private string value;

		/// <summary>
		/// Creates an instance of <see cref="ChoiceOption"/>.
		/// </summary>
		public ChoiceOption(string text, string value)
		{
			this.text = text;
			this.value = value;
		}

		/// <summary>
		/// Text
		/// </summary>
		public string Text
		{
			get { return text; }
			set { text = value; }
		}

		/// <summary>
		/// Value
		/// </summary>
		public string Value
		{
			get { return value; }
			set { this.value = value; }
		}
	}
}